package com.object;

/**
 * @author xiangui
 * 描述: 因为此时只引用到了父类中的数据，所以只会初始化父类。算是一个被动引用
 * 时间: Create in 13:55 2018/7/23
 */
class SupperClass{
    static {
        System.out.println("supperClass Init");
    }
    public static int value = 123;
}
class SubClass extends SupperClass{
    static {
        System.out.println("subClass init!");
    }
    public static final String name = "我是老曹";
}

public class NoInitialization {

    public static void main(String[] args) {
        //System.out.println(SubClass.value);
        //SupperClass[] sca = new SupperClass[20];
        System.out.println(SubClass.name);
    }

}
